package com.tegtech.module.dict.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.tegtech.module.dict.domain.DictVal;

public interface DictValMapper {
	
	/**
	 * 通过dictType获取字典数据
	 * @param dictType
	 * @return
	 */
	@Select("SELECT dict_value `dictValue`, dict_label `dictLabel` FROM sys_dict_data WHERE dict_type = #{dictType} AND status = '0' ORDER BY dict_sort ASC")
	public List<DictVal> findDictValList(String dictType);
	
	/**
	 * 根据dictCodes获取字典类型
	 * @param dictCodes
	 * @return
	 */
	public List<String> selectDictTypeByIds(Long[] dictCodes);

}
